/****
 * Driver to test joblist.h.
 */

#include "joblist.h"
#include <stdio.h>
#include <stdlib.h>


void main( int argc, char **argv )
{
   joblist_t *list = NULL;
   job_status_t status = FOREGROUND;
   int success;
   char* text;
   
   text = "something";
   char *text2 = "ls -l";
   char *text3 = "sort -n +4";
   
   printf("\nAdding something to the list.");
   success = add_list(getpid(), text, status);
   success = add_list(getpid(), text2, status);
   success = add_list(getpid(), text3, status);
   show_jobs();
   
   
   delete_job(1002);
   show_jobs();
   delete_job(1000);
   show_jobs();
   delete_job(1003);
   show_jobs();
   //printf("\nDeleting nonexistant job");
   //delete_job(1003);
   //show_jobs();
}
